package gamagora.game.world.maps.game
{
	import gamagora.game.world.maps.OSMap;
	import gamagora.game.entity.*;

	public class OSMap2 extends OSMap
	{
		public function OSMap2()
		{
			super();

			var ground:OSGround = new OSGround(0, 1060, 100, 20, 0, false);
			ground.setNoErosionDown([0, 1, 2, 3, 4]);
			ground.setNoErosionLeft([0]);
			ground.setNoErosionRight([4]);
			ground.erode();
			add(ground);

			ground = new OSGround(100, 800, 100, 280, 0, false);
			ground.setNoErosionDown([65, 66, 67, 68, 69]);
			ground.setNoErosionLeft([65]);
			ground.setNoErosionRight([4]);
			ground.erode();
			add(ground);

			ground = new OSGround(180, 740, 180, 20, -45, false);
			ground.setBorders(true, true);
			add(ground);

			ground = new OSGround(340, 680, 620, 400, 0, false);
			ground.setNoErosionUp([6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27]);
			ground.setNoErosionDown([589, 590, 591, 592, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 613, 614, 615, 616, 617, 618, 619]);
			ground.setNoErosionLeft([0]);
			ground.setNoErosionRight([30]);
			ground.erode();
			add(ground);

			add(new OSMonkey(560, 388));

			add(new OSSmoke(760, 460, 100, 200));

			var house:OSHouse = new OSHouse(460, 460);
			addBackground(house.background);
			addForeground(house);

		}
	}
}
